from flask import Blueprint, request, jsonify

from utils.work_log import get_logger
from utils.work_weixin import client

api = Blueprint('weixin_menu_api', __name__, url_prefix='/api/v1/weixin/menu')

log = get_logger(__name__)


@api.route('/add', methods=['POST'])
def add():
    args = request.json
    result = client.menu.create(args)
    return jsonify({'status': 0, 'data': result})


def delete():
    pass


def get():
    pass
